package vashion.azeroth.core.common;

import java.util.HashMap;
import java.util.Map;

public class RechargeTransform {

    private static Map<String, String> payModePrefixMap = new HashMap<String, String>();
    private static Map<String, String> callbackMap = new HashMap<String, String>();
	
	static {
		payModePrefixMap.put("alipay", "alipay"); //支付宝
		payModePrefixMap.put("wx", "wx"); //微信支付
	}
	
	static {
		callbackMap.put("alipay_wap", "http://www.vashion.me/tran/callback.htm"); //支付宝手机网页支付
		callbackMap.put("alipay_qr", "http://www.vashion.me/tran/callback.htm"); //支付宝扫码支付
		callbackMap.put("wx", "http://www.vashion.me/tran/callback.htm"); //微信支付
	}
	
	public static String getOrderNoPre(String modeName) {
		return payModePrefixMap.get(modeName);
	}
	
	public static String getCallbackUrl(String modeName) {
		return callbackMap.get(modeName);
	}
}
